Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

7zip-bin

Package Overview
Dependencies
Maintainers
1
Versions
45
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

7zip-bin

7-Zip precompiled binaries

  • 2.4.1
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
209K
decreased by-41.71%
Maintainers
1
Weekly downloads
 
Created

What is 7zip-bin?

The 7zip-bin npm package provides a way to use the 7-Zip compression tool within Node.js applications. It includes precompiled binaries for various platforms, allowing you to perform compression and decompression tasks without needing to install 7-Zip separately.

What are 7zip-bin's main functionalities?

Compress files

This feature allows you to compress files into a 7z archive. The code sample demonstrates how to use the 7zip-bin package to compress 'file.txt' into 'archive.7z'.

const { execFile } = require('child_process');
const pathTo7zip = require('7zip-bin').path7za;

execFile(pathTo7zip, ['a', 'archive.7z', 'file.txt'], (err, stdout, stderr) => {
  if (err) throw err;
  console.log(stdout);
});

Decompress files

This feature allows you to decompress files from a 7z archive. The code sample demonstrates how to use the 7zip-bin package to extract 'archive.7z'.

const { execFile } = require('child_process');
const pathTo7zip = require('7zip-bin').path7za;

execFile(pathTo7zip, ['x', 'archive.7z'], (err, stdout, stderr) => {
  if (err) throw err;
  console.log(stdout);
});

List contents of an archive

This feature allows you to list the contents of a 7z archive. The code sample demonstrates how to use the 7zip-bin package to list the contents of 'archive.7z'.

const { execFile } = require('child_process');
const pathTo7zip = require('7zip-bin').path7za;

execFile(pathTo7zip, ['l', 'archive.7z'], (err, stdout, stderr) => {
  if (err) throw err;
  console.log(stdout);
});

Other packages similar to 7zip-bin

Keywords

FAQs

Package last updated on 17 Jan 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc